package com.ocp.socket.server.vo;

import java.util.Map;

/**
 * @Auther: zhangzh
 * @Date: 2019/2/23 22:29
 * @Description:
 * @Version: 1.0.0
 */
public class MessageVo {
    //JSON串
    private String jsonStr;
    //终端类型
    private String model;
    //终端识别码
    private String sn;
    //数据日期
    private String dataTime;
    //data
    private Map<String,DataVo> dataVoMap;
    //返回编码
    private String returnCode;
    //返回消息
    private String returnMsg;
    //包头
    private String dataHeader;
    //是否是最新数据  true是新数据，flase:历史数据
    private boolean newDataFlag;

    private boolean isEndTime = false;

    public boolean isEndTime() {
        return isEndTime;
    }

    public void setEndTime(boolean endTime) {
        isEndTime = endTime;
    }

    public String getJsonStr() {
        return jsonStr;
    }

    public void setJsonStr(String jsonStr) {
        this.jsonStr = jsonStr;
    }

    public String getDataHeader() {
        return dataHeader;
    }

    public void setDataHeader(String dataHeader) {
        this.dataHeader = dataHeader;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getDataTime() {
        return dataTime;
    }

    public void setDataTime(String dataTime) {
        this.dataTime = dataTime;
    }

    public Map<String, DataVo> getDataVoMap() {
        return dataVoMap;
    }

    public void setDataVoMap(Map<String, DataVo> dataVoMap) {
        this.dataVoMap = dataVoMap;
    }

    public String getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public boolean isNewDataFlag() {
        return newDataFlag;
    }

    public void setNewDataFlag(boolean newDataFlag) {
        this.newDataFlag = newDataFlag;
    }
}
